package com.kgc;

import com.kgc.filter.CustomerClobalFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Bean;

@EnableDiscoveryClient
@SpringBootApplication
public class DemoGatewayApplication {
    @Bean
    public GlobalFilter customFilter() {
        return new CustomerClobalFilter();
    }
    public static void main(String[] args) {
        SpringApplication.run(DemoGatewayApplication.class, args);
    }

}
